package com.sokal.easycare.modules.order.entity.additional;

import org.hibernate.validator.constraints.Length;

import com.sokal.easycare.common.persistence.DataEntity;

/**
 * 订单评价与疑问Entity
 * @author nibo
 * @version 2017-03-26
 */
public class OmOrderAdditional extends DataEntity<OmOrderAdditional> {
	
	private static final long serialVersionUID = 1L;
	private String orderCode;		// order_code
	private Integer type;		// '1:评价 2疑问',
	private String content;		// content
	
	public OmOrderAdditional() {
		super();
	}

	public OmOrderAdditional(String id){
		super(id);
	}

	@Length(min=1, max=30, message="order_code长度必须介于 1 和 30 之间")
	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
	@Length(min=0, max=500, message="content长度必须介于 0 和 500 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}